package com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance;

import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.dto.HrApprovalInstanceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HrApprovalInstanceCloudService
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-HR", fallback = HrApprovalInstanceCloudServiceFallback.class)
@RequestMapping("/hr/approval/instance")
public interface HrApprovalInstanceCloudService {

    /**
     * 查询审批实例列表.
     *
     * @param param the param
     * @return the approval instance list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract HrApprovalInstanceListCloudDto query(@RequestBody HrApprovalInstanceQueryCloudParam param);

    /**
     * 新增审批实例.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody HrApprovalInstanceCreateCloudParam param);

    /**
     * 编辑审批实例.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody HrApprovalInstanceUpdateCloudParam param);

    /**
     * 删除审批实例.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody HrApprovalInstanceDeleteCloudParam param);
}
